﻿@(Html.DevExtreme().RangeSelector()
    .ID("range-selector")
    .Margin(m => m.Top(50))
    .Scale(s => s
        .StartValue(new DateTime(2011, 2, 1))
        .EndValue(new DateTime(2011, 7, 1))
        .MinorTickInterval(VizTimeInterval.Day)
        .TickInterval(VizTimeInterval.Week)
        .MinRange(VizTimeInterval.Week)
        .MaxRange(VizTimeInterval.Month)
        .MinorTick(m => m.Visible(false))
    )
    .SliderMarker(f => f.Format(Format.MonthAndDay))
    .Value(new[] { new DateTime(2011, 2, 5), new DateTime(2011, 3, 5)})
    .Title("Select a Vacation Period")
)
